import { reactive } from "vue";
import type { FormRules } from "element-plus";
import { isPhone, isEmail } from "@pureadmin/utils";

/** 自定义表单规则校验 */
export const formRules = reactive(<FormRules>{
  nickname: [{ required: true, message: "用户昵称为必填项", trigger: "blur" }],
  username: [
    { required: true, message: "装修公司名称为必填项", trigger: "blur" }
  ],
  mobile: [{ required: true, message: "手机号为必填项", trigger: "blur" }],
  password: [{ required: true, message: "用户密码为必填项", trigger: "blur" }],
  expires: [{ required: true, message: "到期时间为必填项", trigger: "blur" }],
  region: [{ required: true, message: "地区为必填项", trigger: "blur" }],
  address: [{ required: true, message: "详细地址为必填项", trigger: "blur" }]
});
